package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkHqPrePaymentEnum
{
    networkNameId("networkNameId", "网点名称"),
    businessTime("businessTime", "业务日期"),
    chargeTime("chargeTime", "记账日期"),
    businessId("businessId", "业务类型"),
    businessSummary("businessSummary", "业务摘要"),
    feeName("feeName", "费用名称"),
    income("income", "发生(收入)"),
    expend("expend", "发生额(支出)"),
    balance("balance", "余额"),
    connectionWay("connectionWay", "联系方式"),
    billType("billType", "账单类型"),
    associatedAccount("associatedAccount", "关联账号"),
    bankAccount("bankAccount", "银行账号");

    private final String code;
    private final String info;

    NetworkHqPrePaymentEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkHqPrePaymentEnum value : NetworkHqPrePaymentEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
